/* 技能树样式 */
.skills-section {
    padding: 2rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%; /* 新增 */
    min-width: 300px; /* 新增 */
    overflow: hidden; /* 新增 */
}

.skill-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--secondary-color);
    transition: width 1s ease-out;
}

/* 时间线样式 */
.timeline-section {
    position: relative;
    padding: 3rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--secondary-color);
    top: 120px; /* 调整 */
    bottom: 20px; /* 调整 */
    left: 2%;
    transform: translateX(-50%); /* 新增 */
    z-index: -1; /* 新增 */
}

.timeline-item {
    position: relative;
    width: calc(50% - 40px);
    padding: 1.5rem;
    margin: 20px;
    background: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) {
    left: 0;
    margin-left: 5%;
}

.timeline-item:nth-child(even) {
    left: 40%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 1.5rem;
    right: -35px;
    z-index: 1;
}



.project-article-list {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.project-article {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(66, 153, 225, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px -6px rgba(66, 153, 225, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(66, 153, 225, 0.15);
}

.project-article h3 {
    color: #2b6cb0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(66, 153, 225, 0.2);
    position: relative;
}

.project-article h3::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.project-article p:first-of-type {
    background: linear-gradient(45deg, #ebf8ff, #f0f9ff);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.project-article ul {
    margin: 2rem 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.project-article li {
    background: rgba(66, 153, 225, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    position: relative;
    
}



.project-article p:first-of-type em {
    background: linear-gradient(45deg, #4299e1, #63b3ed);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-article p:first-of-type em::before {
    content: "⌨️";
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .project-article {
        padding: 1.5rem;
        margin: 2rem -1rem;
        border-radius: 12px;
    }
    
    .project-article ul {
        grid-template-columns: 1fr;
    }
}